3.358 \(\int \frac {\sec ^3(c+d x)}{(a+i a \tan (c+d x))^{3/2}} \, dx\)

Optimal. Leaf size=86 \[ \frac {2 i \sqrt {2} \tanh ^{-1}\left (\frac {\sqrt {a} \sec (c+d x)}{\sqrt {2} \sqrt {a+i a \tan (c+d x)}}\right )}{a^{3/2} d}-\frac {2 i \sec (c+d x)}{a d \sqrt {a+i a \tan (c+d x)}} \]

[Out]

2*I*arctanh(1/2*sec(d*x+c)*a^(1/2)*2^(1/2)/(a+I*a*tan(d*x+c))^(1/2))*2^(1/2)/a^(3/2)/d-2*I*sec(d*x+c)/a/d/(a+I
*a*tan(d*x+c))^(1/2)

________________________________________________________________________________________

Rubi [A]  time = 0.10, antiderivative size = 86, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.115, Rules used = {3491, 3489, 206} \[ \frac {2 i \sqrt {2} \tanh ^{-1}\left (\frac {\sqrt {a} \sec (c+d x)}{\sqrt {2} \sqrt {a+i a \tan (c+d x)}}\right )}{a^{3/2} d}-\frac {2 i \sec (c+d x)}{a d \sqrt {a+i a \tan (c+d x)}} \]

Antiderivative was successfully verified.

[In]

Int[Sec[c + d*x]^3/(a + I*a*Tan[c + d*x])^(3/2),x]

[Out]

((2*I)*Sqrt[2]*ArcTanh[(Sqrt[a]*Sec[c + d*x])/(Sqrt[2]*Sqrt[a + I*a*Tan[c + d*x]])])/(a^(3/2)*d) - ((2*I)*Sec[
c + d*x])/(a*d*Sqrt[a + I*a*Tan[c + d*x]])

Rule 206

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1*ArcTanh[(Rt[-b, 2]*x)/Rt[a, 2]])/(Rt[a, 2]*Rt[-b, 2]), x]
 /; FreeQ[{a, b}, x] && NegQ[a/b] && (GtQ[a, 0] || LtQ[b, 0])

Rule 3489

Int[sec[(e_.) + (f_.)*(x_)]/Sqrt[(a_) + (b_.)*tan[(e_.) + (f_.)*(x_)]], x_Symbol] :> Dist[(-2*a)/(b*f), Subst[
Int[1/(2 - a*x^2), x], x, Sec[e + f*x]/Sqrt[a + b*Tan[e + f*x]]], x] /; FreeQ[{a, b, e, f}, x] && EqQ[a^2 + b^
2, 0]

Rule 3491

Int[((d_.)*sec[(e_.) + (f_.)*(x_)])^(m_.)*((a_) + (b_.)*tan[(e_.) + (f_.)*(x_)])^(n_), x_Symbol] :> Simp[(2*d^
2*(d*Sec[e + f*x])^(m - 2)*(a + b*Tan[e + f*x])^(n + 1))/(b*f*(m - 2)), x] + Dist[(2*d^2)/a, Int[(d*Sec[e + f*
x])^(m - 2)*(a + b*Tan[e + f*x])^(n + 1), x], x] /; FreeQ[{a, b, d, e, f}, x] && EqQ[a^2 + b^2, 0] && EqQ[m/2
+ n, 0] && LtQ[n, -1]

Rubi steps

\begin {align*} \int \frac {\sec ^3(c+d x)}{(a+i a \tan (c+d x))^{3/2}} \, dx &=-\frac {2 i \sec (c+d x)}{a d \sqrt {a+i a \tan (c+d x)}}+\frac {2 \int \frac {\sec (c+d x)}{\sqrt {a+i a \tan (c+d x)}} \, dx}{a}\\ &=-\frac {2 i \sec (c+d x)}{a d \sqrt {a+i a \tan (c+d x)}}+\frac {(4 i) \operatorname {Subst}\left (\int \frac {1}{2-a x^2} \, dx,x,\frac {\sec (c+d x)}{\sqrt {a+i a \tan (c+d x)}}\right )}{a d}\\ &=\frac {2 i \sqrt {2} \tanh ^{-1}\left (\frac {\sqrt {a} \sec (c+d x)}{\sqrt {2} \sqrt {a+i a \tan (c+d x)}}\right )}{a^{3/2} d}-\frac {2 i \sec (c+d x)}{a d \sqrt {a+i a \tan (c+d x)}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.80, size = 101, normalized size = 1.17 \[ \frac {8 e^{3 i (c+d x)} \left (-1+\sqrt {1+e^{2 i (c+d x)}} \tanh ^{-1}\left (\sqrt {1+e^{2 i (c+d x)}}\right )\right )}{a d \left (1+e^{2 i (c+d x)}\right )^2 (\tan (c+d x)-i) \sqrt {a+i a \tan (c+d x)}} \]

Antiderivative was successfully verified.

[In]

Integrate[Sec[c + d*x]^3/(a + I*a*Tan[c + d*x])^(3/2),x]

[Out]

(8*E^((3*I)*(c + d*x))*(-1 + Sqrt[1 + E^((2*I)*(c + d*x))]*ArcTanh[Sqrt[1 + E^((2*I)*(c + d*x))]]))/(a*d*(1 +
E^((2*I)*(c + d*x)))^2*(-I + Tan[c + d*x])*Sqrt[a + I*a*Tan[c + d*x]])

________________________________________________________________________________________

fricas [B]  time = 0.60, size = 196, normalized size = 2.28 \[ \frac {i \, \sqrt {2} a^{2} d \sqrt {\frac {1}{a^{3} d^{2}}} \log \left (\frac {{\left (2 \, {\left (4 i \, a d e^{\left (2 i \, d x + 2 i \, c\right )} + 4 i \, a d\right )} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} \sqrt {\frac {1}{a^{3} d^{2}}} + 8 i\right )} e^{\left (-i \, d x - i \, c\right )}}{a d}\right ) - i \, \sqrt {2} a^{2} d \sqrt {\frac {1}{a^{3} d^{2}}} \log \left (\frac {{\left (2 \, {\left (-4 i \, a d e^{\left (2 i \, d x + 2 i \, c\right )} - 4 i \, a d\right )} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} \sqrt {\frac {1}{a^{3} d^{2}}} + 8 i\right )} e^{\left (-i \, d x - i \, c\right )}}{a d}\right ) - 2 i \, \sqrt {2} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}}}{a^{2} d} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(d*x+c)^3/(a+I*a*tan(d*x+c))^(3/2),x, algorithm="fricas")

[Out]

(I*sqrt(2)*a^2*d*sqrt(1/(a^3*d^2))*log((2*(4*I*a*d*e^(2*I*d*x + 2*I*c) + 4*I*a*d)*sqrt(a/(e^(2*I*d*x + 2*I*c)
+ 1))*sqrt(1/(a^3*d^2)) + 8*I)*e^(-I*d*x - I*c)/(a*d)) - I*sqrt(2)*a^2*d*sqrt(1/(a^3*d^2))*log((2*(-4*I*a*d*e^
(2*I*d*x + 2*I*c) - 4*I*a*d)*sqrt(a/(e^(2*I*d*x + 2*I*c) + 1))*sqrt(1/(a^3*d^2)) + 8*I)*e^(-I*d*x - I*c)/(a*d)
) - 2*I*sqrt(2)*sqrt(a/(e^(2*I*d*x + 2*I*c) + 1)))/(a^2*d)

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sec \left (d x + c\right )^{3}}{{\left (i \, a \tan \left (d x + c\right ) + a\right )}^{\frac {3}{2}}}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(d*x+c)^3/(a+I*a*tan(d*x+c))^(3/2),x, algorithm="giac")

[Out]

integrate(sec(d*x + c)^3/(I*a*tan(d*x + c) + a)^(3/2), x)

________________________________________________________________________________________

maple [B]  time = 1.15, size = 157, normalized size = 1.83 \[ \frac {2 \sqrt {\frac {a \left (i \sin \left (d x +c \right )+\cos \left (d x +c \right )\right )}{\cos \left (d x +c \right )}}\, \left (-\sqrt {2}\, \sin \left (d x +c \right ) \sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \arctan \left (\frac {\left (i \cos \left (d x +c \right )-i+\sin \left (d x +c \right )\right ) \sqrt {2}}{2 \sin \left (d x +c \right ) \sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}}\right )+i \cos \left (d x +c \right )-i+\sin \left (d x +c \right )\right )}{d \left (i \sin \left (d x +c \right )+\cos \left (d x +c \right )-1\right ) a^{2}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sec(d*x+c)^3/(a+I*a*tan(d*x+c))^(3/2),x)

[Out]

2/d*(a*(I*sin(d*x+c)+cos(d*x+c))/cos(d*x+c))^(1/2)*(-2^(1/2)*sin(d*x+c)*(-2*cos(d*x+c)/(1+cos(d*x+c)))^(1/2)*a
rctan(1/2*(I*cos(d*x+c)-I+sin(d*x+c))/sin(d*x+c)/(-2*cos(d*x+c)/(1+cos(d*x+c)))^(1/2)*2^(1/2))+I*cos(d*x+c)-I+
sin(d*x+c))/(I*sin(d*x+c)+cos(d*x+c)-1)/a^2

________________________________________________________________________________________

maxima [B]  time = 1.10, size = 814, normalized size = 9.47 \[ \text {result too large to display} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(d*x+c)^3/(a+I*a*tan(d*x+c))^(3/2),x, algorithm="maxima")

[Out]

-1/2*((cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)^(1/4)*(2*sqrt(2)*arctan2((cos(2*d*x +
 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)^(1/4)*sin(1/2*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c
) + 1)), (cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)^(1/4)*cos(1/2*arctan2(sin(2*d*x +
2*c), cos(2*d*x + 2*c) + 1)) + 1) - 2*sqrt(2)*arctan2((cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x +
 2*c) + 1)^(1/4)*sin(1/2*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c) + 1)), (cos(2*d*x + 2*c)^2 + sin(2*d*x + 2
*c)^2 + 2*cos(2*d*x + 2*c) + 1)^(1/4)*cos(1/2*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c) + 1)) - 1) - I*sqrt(2
)*log(sqrt(cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)*cos(1/2*arctan2(sin(2*d*x + 2*c),
 cos(2*d*x + 2*c) + 1))^2 + sqrt(cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)*sin(1/2*arc
tan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c) + 1))^2 + 2*(cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2
*c) + 1)^(1/4)*cos(1/2*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c) + 1)) + 1) + I*sqrt(2)*log(sqrt(cos(2*d*x +
2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)*cos(1/2*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c) + 1))
^2 + sqrt(cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)*sin(1/2*arctan2(sin(2*d*x + 2*c),
cos(2*d*x + 2*c) + 1))^2 - 2*(cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)^(1/4)*cos(1/2*
arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c) + 1)) + 1))*sqrt(a) - (-4*I*sqrt(2)*cos(1/2*arctan2(sin(2*d*x + 2*c
), cos(2*d*x + 2*c) + 1)) - 4*sqrt(2)*sin(1/2*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c) + 1)))*sqrt(a))/((cos
(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)^(1/4)*a^2*d)

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {1}{{\cos \left (c+d\,x\right )}^3\,{\left (a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}\right )}^{3/2}} \,d x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/(cos(c + d*x)^3*(a + a*tan(c + d*x)*1i)^(3/2)),x)

[Out]

int(1/(cos(c + d*x)^3*(a + a*tan(c + d*x)*1i)^(3/2)), x)

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sec ^{3}{\left (c + d x \right )}}{\left (i a \left (\tan {\left (c + d x \right )} - i\right )\right )^{\frac {3}{2}}}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(d*x+c)**3/(a+I*a*tan(d*x+c))**(3/2),x)

[Out]

Integral(sec(c + d*x)**3/(I*a*(tan(c + d*x) - I))**(3/2), x)

________________________________________________________________________________________